package com.bot.edu.informationmanage.cousesection.service.impl;

import com.bot.edu.informationmanage.cousesection.entity.CourseSection;
import com.bot.edu.informationmanage.cousesection.mapper.CourseSectionMapper;
import com.bot.edu.informationmanage.cousesection.service.ICourseSectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 课程的章节表
 * @Author: jeecg-boot
 * @Date:   2022-04-07
 * @Version: V1.0
 */
@Service
public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, CourseSection> implements ICourseSectionService {


    @Autowired
    private CourseSectionMapper courseSectionMapper;


    @Override
    public List<CourseSection> checkCourseSection(String courseId) {
        return courseSectionMapper.checkCourseSection(courseId);
    }

    @Override
    public List<CourseSection> getSectionbyId(String courseId) {
        return courseSectionMapper.getSectionbyId(courseId);
    }

    @Override
    public List<CourseSection> getCourseSectionList() {
        return courseSectionMapper.getCourseSectionList();
    }
}
